Release 10.1A: OpenEdge Development:
Progress 4GL Reference
TRUNCATE function
Truncates a decimal expression to a specified number of decimal places, returning a decimal value.
Syntax
expressionA decimal expression that you want to truncate.
decimal-placesA non-negative integer expression that indicates the number of decimal places for a truncated
Exampleexpression.This procedure doubles each customer’s credit-limit and then truncates that value before rounding it to the nearest $1000:
Note
You can use the TRUNCATE function to treat division as integer division. For example, i = TRUNCATE (x / y, 0).
See also
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |